package com.ars.main;

import javafx.stage.Stage;

import java.util.HashMap;

/**
 * Created by 汪贵春 on 2016/12/26.
 */
public class StageCollection {
    private static StageCollection ourInstance = new StageCollection();
    private HashMap<String, Stage> map;

    private StageCollection() {
        map = new HashMap<>();
    }

    public static StageCollection getInstance() {
        return ourInstance;
    }

    public void put(String key, Stage stage) {
        map.put(key, stage);
    }

    public Stage get(String key) {
        return map.get(key);
    }
}
